home *** CD-ROM | disk | FTP | other *** search
- global gTheAddr, gEmailErrorMessage, gTotalEmailToFields
-
- on getEmailTo
- gTheAddr = EMPTY
- repeat with i = 1 to gTotalEmailToFields
- fieldName = "rec" & i
- defaultText = "friend e-mail " & i
- cutText = the text of field fieldName
- put removeEndSpaces(cutText) into field fieldName
- if (the text of field fieldName contains defaultText) = 0 then
- if checkEmailField(fieldName) = 0 then
- gTheAddr = the text of field fieldName
- next repeat
- end if
- if the text of field fieldName <> EMPTY then
- if gEmailErrorMessage = EMPTY then
- gEmailErrorMessage = "Friend e-mail " & i & " is not a valid e-mail address."
- else
- gEmailErrorMessage = gEmailErrorMessage & RETURN & "Friend e-mail " & i & " is not a valid e-mail address."
- end if
- clearECardPic()
- end if
- end if
- end repeat
- if gTheAddr = EMPTY then
- gEmailErrorMessage = gEmailErrorMessage & RETURN & "You must supply at least one valid friend e-mail address."
- end if
- end
-